package edu.sctu.jsoup.repo;


import edu.sctu.jsoup.entity.StudentEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepo extends CrudRepository<StudentEntity,Long>{

List<StudentEntity> findByName(String name);
List<StudentEntity> findByAge(int age);
    List<StudentEntity> findById(Long id);



}
